const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  css: {
    loaderOptions: {
      postcss: {
        // 这里的选项会传递给 postcss-loader
        postcssOptions: {
          // https://www.npmjs.com/package/postcss-pxtorem
          plugins: [
            // 'postcss-pxtorem',
            [
              "postcss-pxtorem",
              {
                rootValue: 3.75, // 1rem转化为多少px
                unitPrecision: 5,
                propList: ["*"],
                selectorBlackList: [],
              },
            ],
          ],
        },
      },
    },
  },
});
